<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/calendar.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.cityselect.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/calendar.css" type="text/css" />
<title>Insert title here</title>
<style type="text/css"> 
	#right{
		margin-top: 60px;
	}
</style>
</head>
<body>
	<div id="right" align="center">
	<form action="${pageContext.request.contextPath}/ShopGoodsAdd" method="post" enctype="multipart/form-data">
		<input type="hidden" name="shopId" value="${sessionScope.shop.shopId }">
		<table>
			<caption>商品基本信息</caption>
			<tr>
				<td>商品名称：</td>
				<td><input type="text" name="goodsName"/></td>
			</tr>
			<tr>
				<td>商品类型：</td>
				<td><input type="text" name="goodsType"/></td>
			</tr>
			
			<tr>
				<td>商品口味：</td>
				<td><input type="text" name="goodsTaste"/></td>
			</tr>
			<tr>
				<td>商品价格：</td>
				<td><input type="text" name="goodsPrice"/></td>
			</tr>
			<tr>
				<td>商品产地：</td>
				<td><div id="city">  
					  <select class="prov" name="p"></select>   
					  <select class="city" name="c" disabled="disabled"></select>  
					  <select class="dist" name="d" disabled="disabled"></select>  
				</div></td>
			</tr>
			<tr>
				<td>商品库存：</td>
				<td><input type="text" name="goodsStock"/></td>
			</tr>
			<tr>
				<td><label for="birthday">生产日期：</label></td>
				<td><input type="text" id="birthday" name="date"/></td>
			</tr>
			<tr>
				<td>保质期：</td>
				<td><input type="text" name="goodsLife"/></td>
			</tr>
			<tr>
				<td>净含量：</td>
				<td><input type="text" name="goodsWeigth"/></td>
			</tr>
			<tr>
				<td>邮费：</td>
				<td><input type="text" name="goodsPostage"/></td>
			</tr>
			<tr>
				<td>食用方法：</td>
				<td><input type="text" name="goodsDirection"/></td>
			</tr>
			<tr>
				<td>储存方法：</td>
				<td><input type="text" name="goodsStore" style="width:200px; height:20px" /></td>
			</tr>
 			<tr>
				<td>商品图片更新上传：</td>
				<td><input type="file" name="file"/></td>
			</tr>
			<tr>
				<td align="center" colspan="2"><input type="submit" value="新增"/></td>
			</tr>
	 	</table>
	</form>
</div>
</body>
<script type="text/javascript">
	$(document).ready(function() {
		 $("#city").citySelect({
				prov: "湖南",
				city: "长沙",
				dist: "雨花区",
				nodata: "none"
			});
		
	});
</script>
</html>